package icu.sehnen.service.impl;

import icu.sehnen.mapper.CompanyMapper;
import icu.sehnen.model.CompanyModel;
import icu.sehnen.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class CompanyServiceImpl implements CompanyService {
@Autowired
    CompanyMapper companyMapper;

    @Override
    public CompanyModel findAll() {
    return  companyMapper.findAll();
    }

    @Override
    public Integer  update(CompanyModel companyModel) {
        return companyMapper.update(companyModel);
    }
}
